using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zune.Forms
{
    /// <summary>
    /// A Clipboard object.
    /// </summary>
    internal class Clipboard
    {
        internal delegate void OnClipboardTextChanged(object sender, bool hasText);
        internal event OnClipboardTextChanged ClipboardTextChanged;
        private string _text = string.Empty;

        internal Clipboard()
        {
        }

        internal void SetText(string text)
        {
            _text = text;
            if (ClipboardTextChanged != null)
                ClipboardTextChanged(this, !string.IsNullOrEmpty(_text));
        }

        internal string GetText()
        {
            return _text;
        }
    }
}